package com.yunxin.admin.system.application;

import com.yunxin.admin.system.application.command.AddDeptCommand;
import com.yunxin.admin.system.application.command.UpdateDeptCommand;

/**
 * 部门业务接口
 *
 * @author zero°
 * @since 2023-05-22
 */
public interface DeptApplicationService {


    /**
     * 新增部门
     *
     * @param command command
     * @return Long
     */
    Long saveDept(AddDeptCommand command);

    /**
     * 修改部门
     *
     * @param command command
     * @return Long
     */
    Long updateDept(UpdateDeptCommand command);

    /**
     * 删除部门
     *
     * @param ids 部门ID，多个以英文逗号,拼接字符串
     * @return boolean
     */
    boolean deleteByIds(String ids);


}
